from rest_framework import serializers
from booktest.models import BookInfo

class BookInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = BookInfo

        fields = ('id','btitle','bpub_date','bread','bcomment','image')